package com.fanghuaiming.tsec.pay.order.spi;

import com.fanghuaiming.tsec.common.model.order.TsecOrder;
import com.fanghuaiming.tsec.pay.order.spi.fallback.TsecOrderFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/****
 * @description: 订单微服务SPI
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 下午5:19
 *
 */
@FeignClient(name = "ts-ec-rocketmq-cloud-order",fallback = TsecOrderFeignClientFallBack.class)
public interface TsecOrderFeignClient {

    /**
     * @Description: 生成订单
     *
     * @param:
     * @return:
     * @auther: fanghuaiming
     * @date: 2020/12/1 下午2:35
     * @version:1.0.0
     */
    @PostMapping("/createOrder")
    String createOrder(@RequestBody TsecOrder tsecOrder);
}
